﻿using System.Collections;
using UnityEngine;

public class PatchManager
{
    private static PatchManager _instance;
    public static PatchManager Instance
    {
        get
        {
            if (_instance == null)
                _instance = new PatchManager();
            return _instance;
        }
    }
    
    /// <summary>
    /// 协程启动器
    /// </summary>
    public MonoBehaviour Behaviour;
    
    /// <summary>
    /// 开启一个协程
    /// </summary>
    public void StartCoroutine(IEnumerator enumerator)
    {
        Behaviour.StartCoroutine(enumerator);
    }
    
}